package com.snut.tomorrowNews.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Admsg {
    private Integer id;
    private String name;
    private Integer position;
    private String url;
    private String account;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Admsg{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", position=" + position +
                ", url='" + url + '\'' +
                ", account='" + account + '\'' +
                ", operateTime=" + operateTime +
                '}';
    }

    public Integer getPosition() {
        return position;
    }

    public void setPosition(Integer position) {
        this.position = position;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }
}
